/*
 * @Author: hukai huzhengen@gmail.com
 * @Date: 2025-06-23 16:04:32
 * @LastEditors: hukai huzhengen@gmail.com
 * @LastEditTime: 2025-08-04 15:51:18
 * @FilePath: \新建文件夹 (8)\foodOrderingSystem-ui\src\api\ingredient.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'



// 查询
export function getList(data) {
    return request({
        url: '/food/order/list',
        method: 'get',
        params: data
    })
}

// 删除
export function deleteInent(ingredientsIds) {
    return request({
        url: '/food/order/' + ingredientsIds,
        method: 'DELETE'
    })
}

// 修改
export function ComboUpdate(data) {
    return request({
        url: '/food/order/edit',
        method: 'post',
        data: data
    })
}

// /food/order/noTakeMeal/{orderId}
export function CombnoTakeMealte(orderId) {
    return request({
        url: `/food/order/noTakeMeal/${orderId}`,
        method: 'put',
    })
}

// /food/combo/approval/

export function ComboDelPron(data) {
    return request({
        url: '/food/combo/approval/' + data,
        method: 'DELETE',
    })
}

export function ComboUpdates(data) {
    return request({
        url: '/food/combo/approval',
        method: 'put',
        data: data
    })
}
// 新增
export function ComboAdd(data) {
    return request({
        url: '/food/combo',
        method: 'post',
        data: data
    })
}

// 详情
export function fooorderulars(data) {
    return request({
        url: '/food/order/' + data,
        method: 'get',
    })
}

// 导出
export function fooexcelrs(data) {
    return request({
        url: '/food/export/excel',
        method: 'get',
        params: data
    })
}

export function sttofnoTakeMeal(data) {
    return request({
        url: `/food/order/noTakeMeal/${data.orderId}/${data.operate}`,
        method: 'put',
    })
}
